\section{TiXmlVisitor Class Reference}
\label{classTiXmlVisitor}\index{TiXmlVisitor@{TiXmlVisitor}}
{\tt \#include $<$tinyxml.h$>$}

Inheritance diagram for TiXmlVisitor::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classTiXmlVisitor}
\end{center}
\end{figure}


\subsection{Detailed Description}
If you call the Accept() method, it requires being passed a \doxyref{TiXmlVisitor}{p.}{classTiXmlVisitor} class to handle callbacks. For nodes that contain other nodes (Document, Element) you will get called with a VisitEnter/VisitExit pair. Nodes that are always leaves are simple called with \doxyref{Visit()}{p.}{classTiXmlVisitor_fad71c71ce6473fb9b4b64cd92de4a19}.

If you return 'true' from a Visit method, recursive parsing will continue. If you return false, {\bf no children of this node or its sibilings} will be Visited.

All flavors of Visit methods have a default implementation that returns 'true' (continue visiting). You need to only override methods that are interesting to you.

Generally Accept() is called on the \doxyref{TiXmlDocument}{p.}{classTiXmlDocument}, although all nodes suppert Visiting.

You should never change the document from a callback.

\begin{Desc}
\item[See also:]\doxyref{TiXmlNode::Accept()}{p.}{classTiXmlNode_cc0f88b7462c6cb73809d410a4f5bb86} \end{Desc}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf $\sim$TiXmlVisitor} ()
\item 
virtual bool {\bf VisitEnter} (const {\bf TiXmlDocument} \&)
\begin{CompactList}\small\item\em Visit a document. \item\end{CompactList}\item 
virtual bool {\bf VisitExit} (const {\bf TiXmlDocument} \&)
\begin{CompactList}\small\item\em Visit a document. \item\end{CompactList}\item 
virtual bool {\bf VisitEnter} (const {\bf TiXmlElement} \&, const {\bf TiXmlAttribute} $\ast$)
\begin{CompactList}\small\item\em Visit an element. \item\end{CompactList}\item 
virtual bool {\bf VisitExit} (const {\bf TiXmlElement} \&)
\begin{CompactList}\small\item\em Visit an element. \item\end{CompactList}\item 
virtual bool {\bf Visit} (const {\bf TiXmlDeclaration} \&)
\begin{CompactList}\small\item\em Visit a declaration. \item\end{CompactList}\item 
virtual bool {\bf Visit} (const {\bf TiXmlText} \&)
\begin{CompactList}\small\item\em Visit a text node. \item\end{CompactList}\item 
virtual bool {\bf Visit} (const {\bf TiXmlComment} \&)
\begin{CompactList}\small\item\em Visit a comment node. \item\end{CompactList}\item 
virtual bool {\bf Visit} (const {\bf TiXmlUnknown} \&)
\begin{CompactList}\small\item\em Visit an unknow node. \item\end{CompactList}\end{CompactItemize}


\subsection{Constructor \& Destructor Documentation}
\index{TiXmlVisitor@{TiXmlVisitor}!$\sim$TiXmlVisitor@{$\sim$TiXmlVisitor}}
\index{$\sim$TiXmlVisitor@{$\sim$TiXmlVisitor}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual TiXmlVisitor::$\sim$TiXmlVisitor ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_276c739ec4701f27c3f86b8ead095e5a}




\subsection{Member Function Documentation}
\index{TiXmlVisitor@{TiXmlVisitor}!VisitEnter@{VisitEnter}}
\index{VisitEnter@{VisitEnter}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::VisitEnter (const {\bf TiXmlDocument} \&)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_07baecb52dd7d8716ae2a48ad0956ee0}


Visit a document. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_2ec73087db26ff4d2c4316c56f861db7}.\index{TiXmlVisitor@{TiXmlVisitor}!VisitExit@{VisitExit}}
\index{VisitExit@{VisitExit}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::VisitExit (const {\bf TiXmlDocument} \&)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_a0ade4f27087447e93974e975c3246ad}


Visit a document. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_0a636046fa589b6d7f3e5bd025b3f33e}.\index{TiXmlVisitor@{TiXmlVisitor}!VisitEnter@{VisitEnter}}
\index{VisitEnter@{VisitEnter}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::VisitEnter (const {\bf TiXmlElement} \&, const {\bf TiXmlAttribute} $\ast$)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_f6c6178ffa517bbdba95d70490875fff}


Visit an element. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_6dccaf5ee4979f13877690afe28721e8}.\index{TiXmlVisitor@{TiXmlVisitor}!VisitExit@{VisitExit}}
\index{VisitExit@{VisitExit}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::VisitExit (const {\bf TiXmlElement} \&)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_ec2b1f8116226d52f3a1b95dafd3a32c}


Visit an element. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_e6a1df8271df4bf62d7873c38e34aa69}.\index{TiXmlVisitor@{TiXmlVisitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::Visit (const {\bf TiXmlDeclaration} \&)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_fad71c71ce6473fb9b4b64cd92de4a19}


Visit a declaration. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_daf7eec4dc43ad071ff52b60361574f5}.\index{TiXmlVisitor@{TiXmlVisitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::Visit (const {\bf TiXmlText} \&)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_399b8ebca5cd14664974a32d2ce029e5}


Visit a text node. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_0857c5d32c59b9a257f9a49cb9411df5}.\index{TiXmlVisitor@{TiXmlVisitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::Visit (const {\bf TiXmlComment} \&)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_53a60e7a528627b31af3161972cc7fa2}


Visit a comment node. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_9870423f5603630e6142f6bdb66dfb57}.\index{TiXmlVisitor@{TiXmlVisitor}!Visit@{Visit}}
\index{Visit@{Visit}!TiXmlVisitor@{TiXmlVisitor}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TiXmlVisitor::Visit (const {\bf TiXmlUnknown} \&)\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classTiXmlVisitor_7e284d607d275c51dac1adb58159ce28}


Visit an unknow node. 



Reimplemented in {\bf TiXmlPrinter} \doxyref{}{p.}{classTiXmlPrinter_08591a15c9a07afa83c24e08b03d6358}.

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
/home/msneddon/eclipse/galileoSR1\_\-cpp/workspace/NFsim/src/NFinput/TinyXML/{\bf tinyxml.h}\end{CompactItemize}
